class CreateBets < ActiveRecord::Migration
  def self.up
    create_table :bets do |t|
      t.datetime :date
      t.decimal  :ammount, :precision => 8, :scale => 2, :default => 0
      t.integer  :eventparticipant_idf
	  t.integer  :user_idf
	  t.integer  :paymethod_idf
      t.timestamps
    end
  end

  def self.down
    drop_table :bets
  end
end
